package com.yx.frame.builder.code;

import com.yx.frame.builder.xml.MethodXml;

public class MethodClientResultBuilder {
	MethodXml methodXml;

	public MethodClientResultBuilder(MethodXml methodXml) {
		this.methodXml = methodXml;
	}
	public String getMethodClientResultName(){
		if("query".equals(methodXml.getType())){
			return "QueryResult$"+methodXml.getId();
		}else if("update".equals(methodXml.getType())){
			return "List<int[]>";
		}else{
			return "JSONObject";
		}
	}
}
